package day021.homework.p9;

public class HuangDi {
    String name;

    private HuangDi(String name) {
        this.name = name;
    }

    private static HuangDi instance = null;

    public static HuangDi getInstance() {
        if (instance == null) {
            instance = new HuangDi("秦始皇");
        }
        return instance;
    }
}
